{% extends base %}

{% block body_left %}

{% init plugins_status = "done" %}
{% include plugin/header/plugin_header_normal.html %}

<!-- plugins_v3.html 最新版本的 -->

{% if plugins_status == "loading" %}
    <div class="card">
        <div class="list-item">
            <span>插件加载中...</span>
        </div>
    </div>
{% end %}

<div class="card">
    <div class="plugin-list col-md-12">
        {% if len(plugins) == 0 %}
            <div class="list-item">
                <span>空空如也~</span>
            </div>
        {% end %}

        {% for index, link in enumerate(plugins) %}
            <a class="list-link" href="{{_server_home}}{{link.link + link.url_query}}">
                <i class="{{link.icon_class}}"></i>
                <span>{{link.title}}</span>

                <div class="plugin-right-box">
                    {% if link.size != None %}
                        <span class="plugin-right-span">{{link.size}}</span>
                    {% end %}

                    {# 额外的说明 #}
                    <span class="plugin-right-span">{{link.badge_info}}</span>
                    <i class="fa fa-chevron-right"></i>
                </div>
            </a>
        {% end %}
    </div>
</div>
{% end %}


{% block body_right %}
    {% include common/sidebar/default.html %}
{% end %}